import EditGlobal from "./EditGlobal";

export default class EditTool extends Laya.Sprite{
    constructor(name){
        super();
        this.name = name;
    }

    onAwake(){
        var name = "textures/jelly/" + this.name + ".png";
        this.loadImage(name)
        this.on(Laya.Event.CLICK,this,this.onClick);
    }

    onClick(e){
        EditGlobal.select = this.name;
    }
}